package com.qf.purchasing.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 投标单位表（公司表）
 */
@ApiModel(description = "投标单位表（公司表）")
@Data
@TableName(value = "z_company")
public class Company {
    public static final String COL_COMPANY_ID = "company_id";
    public static final String COL_COMPANY_NAME = "company_name";
    public static final String COL_ADDRESS = "address";
    public static final String COL_PRINCIPAL = "principal";
    public static final String COL_TEL = "tel";
    public static final String COL_STATUS = "status";
    /**
     * 公司id
     */
    @TableId(value = "company_id", type = IdType.INPUT)
    @ApiModelProperty(value = "公司id")
    private Integer companyId;
    /**
     * 公司名
     */
    @TableField(value = "company_name")
    @ApiModelProperty(value = "公司名")
    private String companyName;
    /**
     * 公司地址
     */
    @TableField(value = "address")
    @ApiModelProperty(value = "公司地址")
    private String address;
    /**
     * 负责人
     */
    @TableField(value = "principal")
    @ApiModelProperty(value = "负责人")
    private String principal;
    /**
     * 联系电话
     */
    @TableField(value = "tel")
    @ApiModelProperty(value = "联系电话")
    private String tel;
    /**
     * 状态，0代表已删除，1代表未删除
     */
    @TableField(value = "`status`")
    @ApiModelProperty(value = "状态，0代表已删除，1代表未删除")
    @TableLogic(delval = "0", value = "1")
    private Integer status;
}